Conditions | 4 |
Paths | 4 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | const defaultOnUnknownActionTypeHandler = (state, action) => { |
||
9 | (state, action) => { |
||
10 | if (typeof state === 'undefined') { |
||
11 | return initial |
||
12 | } else if (map.hasOwnProperty(action.type)) { |
||
13 | return map[action.type](state, action) |
||
14 | } else if (action.type === '@@redux/INIT') { |
||
15 | return initial |
||
16 | } else { |
||
17 | return onUnknownActionType(state, action) |
||
18 | } |
||
19 | } |
||
20 | |||
24 |